package cn.bob.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author bob
 * @data 2022/9/28-11:14
 */
@Data
public class BaseQuery {
    private  Integer currentPage = 1;
    private  Integer pageSize = 5;
    // 高级查询的参数
    // 关键字查询
    private String keyword;
    public  Integer getStart(){
        return (this.currentPage -1)* this.pageSize;
    }
}
